package cn.edu.sgu.www.mhxysy.service.chongwu.impl;

import cn.edu.sgu.www.mhxysy.entity.chongwu.ChongwuZizhiType;
import cn.edu.sgu.www.mhxysy.mapper.chongwu.ChongwuZizhiTypeMapper;
import cn.edu.sgu.www.mhxysy.service.chongwu.ChongwuZizhiTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ChongwuZizhiTypeServiceImpl implements ChongwuZizhiTypeService {

    private final ChongwuZizhiTypeMapper chongwuZizhiTypeMapper;

    @Autowired
    public ChongwuZizhiTypeServiceImpl(ChongwuZizhiTypeMapper chongwuZizhiTypeMapper) {
        this.chongwuZizhiTypeMapper = chongwuZizhiTypeMapper;
    }

    @Override
    public List<ChongwuZizhiType> selectAll() {
        return chongwuZizhiTypeMapper.selectTypes();
    }

    @Override
    public ChongwuZizhiType selectById(Integer id) {
        return chongwuZizhiTypeMapper.selectById(id);
    }

}